// #1 引入 applyMiddleware
import { createStore, applyMiddleware } from 'redux'
// #2 引入中间件
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import rootReducer from './reducers'
// #3 应用中间件
export default createStore(rootReducer, applyMiddleware(thunk, logger))
